Using Intel Compilers

For using lapack and blas libraries, link it as below while compiling your FORTRAN program

For gfortran gfortran -llapack -lblas

For Intel Fortran ifort -L/sware/intel/mkl/lib/intel64 -llapack -lblas

Sample job file for running a serial job for single CPU:

File Name : single.cmd

#!/bin/bash

#@ output = test.out

#@ error = test.err

#@ job_type = serial

#@ class = Small

#@ environment = COPY_ALL

#@ queue

Jobid=`echo $LOADL_STEP_ID | cut -f 6 -d .`

tmpdir=$HOME/scratch/job$Jobid

mkdir -p $tmpdir; cd $tmpdir

cp -R $LOADL_STEP_INITDIR/* $tmpdir

icc/ifort

mv ../job$Jobid $LOADL_STEP_INITDIR

In the command prompt, type the command, llsubmit serial.cmd